<template>
  <div>
     <input type="checkbox" :checked='fn'>
     <input type="checkbox" :checked='flag=!flag'>
     <span>同意</span>
   </div>
</template>
 
<script>
export default {
  
  data() {
    return {
      flag:'true',
    };
  },
  methods: {
     fn(){
      this.flag=!this.flag
    }
  }
};
</script>

<style scoped>
     
</style>